package file;

import java.io.FileOutputStream;
import java.io.OutputStream;

public class OutputStreamDemo2 {
    public static void main(String[] args) {
        try(OutputStream os = new FileOutputStream("D:/temp/c.txt",true)){
//            os.write("hello, world".getBytes());
//            os.write("hello, world".getBytes(),3,5 );
            os.write("....helloworld".getBytes());
            os.flush();

        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
